<!--START JS-->
<i id="scriptTag">/static/js/console/bannerEdit.js</i>
<link rel="stylesheet" type="text/css" href="/static/js/plugins/uploadify/uploadify.css" />
<link rel="stylesheet" type="text/css" href="/static/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" >
<!--END JS-->

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?php echo $page_title; ?></h2>
        <p>您可在此进行<?php echo $page_title; ?></p>
    </div>
    <div class="col-lg-2"></div>
</div>

<!--START bannerEdit-->
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><?php echo $page_title; ?></h5>
                </div>
                <div class="ibox-content">
                    <form method="post" action="/console/bannerEdit">
                        <input type="hidden" value="<?php echo $detail['id']; ?>" name="id">
                        <div class="form-group" title="点击上传或修改图片" style="min-height:123px;">
                            <label>图片：</label>
                            <input type="file" id="file_upload" style="display: none;">
                            <input type="hidden" value="<?php echo $detail['banner_img_url']; ?>" id="banner-img" name="banner_img_url">
                            <div id="banner-img-cover" style="position:absolute;top:87px;">
                                <img style="width: 100px;height:100px;" src="<?php echo $detail['banner_img_url']; ?>"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label>跳转连接：(请输入有效的连接地址,若为空则不跳转)</label> 
                            <input id="banner-redirect" type="text" placeholder="请输入超链接" class="form-control" value="<?php echo $detail['banner_redirect_url']; ?>">
                        </div>
                        <div class="form-group">
                            <label>显示：</label>
                            <?php if ($detail['banner_is_show']) { ?>
                                <div class="radio radio-success radio-inline">
                                    <input type="radio" name="show" value="1" <?php if ($detail['banner_is_show'] == 1) echo 'checked'; ?> id="inlineRadio1"> 
                                    <label for="inlineRadio1">显示</label>
                                </div>
                                <div class="radio radio-success radio-inline">
                                    <input type="radio" name="show" value="2" <?php if ($detail['banner_is_show'] == 2) echo 'checked'; ?> id="inlineRadio2"> 
                                    <label for="inlineRadio2">隐藏</label>
                                </div>
                            <?php } else { ?>
                                <div class="radio radio-success radio-inline">
                                    <input type="radio" name="show" value="1" checked id="inlineRadio1"> 
                                    <label for="inlineRadio1">显示</label>
                                </div>
                                <div class="radio radio-success radio-inline">
                                    <input type="radio" name="show" value="2" id="inlineRadio2"> 
                                    <label for="inlineRadio2">隐藏</label>
                                </div>
                            <?php } ?>
                        </div>
                        <div class="form-group">
                            <button id="save-btn" class="btn btn-primary" type="submit">保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--END bannerEdit-->